package com.ming;

import com.ming.tank.*;

public class Main {


     public static void main(String[] args) throws Exception
     {
	// write your code here
        TankFrame frame = new TankFrame();
        Integer initTankCount = Integer.parseInt((String)ProperMgr.getInstance().get("initTankCount"));
        //初始化敌方坦克
         for (int i = 0; i < initTankCount; i++) {
             frame.tanks.add(new Tank(50+i*80,200, Dir.DOWN, Group.BAD,frame));
         }
         new Thread(()->new Audio("audio/war1.wav").loop()).start();
        while (true) {
            Thread.sleep(25);
            frame.repaint();
        }
    }
}
